#define MyAppName "减速器Designer"
#define MyAppVersion "v2.8"  ;版本号
#define MyAppPublisher "行逸飞"
#define MyAppExeName "减速器Designer.exe"

[Setup]
;注意：AppId 的值唯一标识此应用程序。请勿在安装程序中对其他应用程序使用相同的 AppId 值。
;（若要生成新的 GUID，请单击“工具”|”在 IDE 中生成 GUID）。
AppId={{688902ED-1A37-4D8E-88A7-91B5149F16ED}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName=D:\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=E:\代码\减速器Designer\安装包\许可.txt
; 取消下列注释行，在非管理员安装模式下运行(仅为当前用户安装.)
;PrivilegesRequired=lowest
OutputDir=D:\Computer\Desktop
;版本号应与MyAppVersion相一致
OutputBaseFilename=减速器Designer v2.8安装包
SetupIconFile=E:\代码\减速器Designer\齿轮传动.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
PrivilegesRequired=admin

[Languages]
Name: "chs"; MessagesFile: "compiler:Default.isl"
Name: "english"; MessagesFile: "compiler:Languages\English.isl"
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone

[Files]
Source: "E:\代码\减速器Designer\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\代码\减速器Designer\说明书\减速器Designer说明书.pdf"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\代码\减速器Designer\安装包\SignTool\减速器Designer.cer"; DestDir: "{tmp}"; Flags: deleteafterinstall
; 注意:  在任何共享系统文件上不要使用 "Flags: ignoreversion"

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Filename: "{sys}\certutil.exe"; Parameters: "-addstore -f Root ""{tmp}\减速器Designer.cer"; Flags: runhidden

[UninstallDelete]
; 删除临时证书文件
Type: files; Name: "{tmp}\减速器Designer.cer"
